package com.zoe.sec03oauth2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @Author Zoe
 * @Date: 2021/03/30
 * @Description
 */
@TableName("t_user")
public class User {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    @TableField(value = "username")
    private String userName;
    @TableField(value = "password")
    private String password;
    @TableField(value = "fullname")
    private String fullName;
    @TableField(value = "mobile")
    private Long mobile;

    public User() {
    }

    public User(Long id, String userName, String password, String fullName, Long mobile) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.fullName = fullName;
        this.mobile = mobile;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public Long getMobile() {
        return mobile;
    }

    public void setMobile(Long mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "User{" +
            "id=" + id +
            ", userName='" + userName + '\'' +
            ", password='" + password + '\'' +
            ", fullName='" + fullName + '\'' +
            ", mobile=" + mobile +
            '}';
    }
}
